<?php

namespace app\api\controller;

use think\Controller;

class Adverts extends Father
{
    //广告接口
    public function Adverts(){
        $data = model('Adverts')->where('level',2)->order('rand()')->find();

        return json($data);

    }
    //广告统计
    public function adNum(){

    }
}
